home *** CD-ROM | disk | FTP | other *** search
/ Atari Forever 4 / Atari Forever 4.zip / Atari Forever 4.iso / PD_THEMA / GESETZE / LHARC.221 / DOC / HEADER.INF < prev    next >
Text File  |  1993-06-13  |  4KB  |  109 lines

  1.   A. Header Formats
  2.      (integers are little-endian; i.e. low-order bytes come first)
  3.  
  4. -----------------------------------------------------------------------------
  5.         level-0                 level-1                 level-2              
  6. -----------------------------------------------------------------------------
  7.       1 header size           1 header size           2 total header size    
  8.       1 header sum            1 header sum                                   
  9.       5 method ID             5 method ID             5 method ID            
  10. B     4 packed size           4 skip size             4 packed size          
  11.       4 original size         4 original size         4 original size        
  12. A     2 time (MS-DOS)         2 time (MS-DOS)         4 time (UNIX style)    
  13.       2 date (MS-DOS)         2 date (MS-DOS)                                
  14. S     1 MS-DOS attribute      1 fixed (0x20)          1 reserved (now 0x20)  
  15.       1 level (0x00)          1 level (0x01)          1 level (0x02)         
  16. I     1 name length           1 name length                                  
  17.       ? pathname              ? filename                                     
  18. C     2 file crc              2 file crc              2 file crc             
  19.       . ........              1 OS ID ('M')           1 OS ID ('M')          
  20.                               . ........                                     
  21.                               2 next header size      2 next header size     
  22.     *************************************************************************
  23.      24 + ?                  27 + ?                  26                      
  24. -----------------------------------------------------------------------------
  25. EX-                           1 ext-type              1 ext-type             
  26. TEN-                          . ........              . ........             
  27. SION                          2 next-header size      2 next-header size     
  28. -----------------------------------------------------------------------------
  29.  
  30.     ü@Level-0 header:
  31.       Same as LHarc and LArc.  Directory delimiter character is '\'.
  32.  
  33.     ü@Level-1 header:
  34.       Default.
  35.  
  36.     ü@Level-2 header:
  37.       Future versions will use this header.
  38.  
  39.     b. Method IDs
  40.  
  41.       -lh0-   no compression
  42.  
  43.       -lh1-   4k sliding dictionary(max 60 bytes) + dynamic Huffman
  44.               + fixed encoding of position
  45.  
  46.       -lh2-   8k sliding dictionary(max 256 bytes) + dynamic Huffman
  47.  
  48.       -lh3-   8k sliding dictionary(max 256 bytes) + static Huffman
  49.  
  50.       -lh4-   4k sliding dictionary(max 256 bytes) + static Huffman
  51.               + improved encoding of position and trees
  52.  
  53.       -lh5-   8k sliding dictionary(max 256 bytes) + static Huffman
  54.               + improved encoding of position and trees
  55.  
  56.       -lzs-   2k sliding dictionary(max 17 bytes)
  57.  
  58.       -lz4-   no compression
  59.  
  60.       -lz5-   4k sliding dictionary(max 17 bytes)
  61.  
  62.     c. OS ID
  63.  
  64.         MS-DOS  'M'
  65.         OS/2    '2'
  66.         OS9     '9'
  67.         OS/68K  'K'
  68.         OS/386  '3'
  69.         HUMAN   'H'
  70.         UNIX    'U'
  71.         CP/M    'C'
  72.         FLEX    'F'
  73.         Mac     'm'
  74.         Runser  'R'
  75.  
  76.   B. Extension
  77.  
  78.     a. OS independent (0x00 - 0x3f)
  79.  
  80.         common header           
  81.          1 0x00                 
  82.          2 header crc           
  83.        ( 1 information )        
  84.          2 next-header size     
  85.                                 
  86.         filename header         
  87.          1 0x01                 
  88.          ? filename             
  89.          2 next-header size     
  90.                                 
  91.         dirname header          
  92.          1 0x02                 
  93.          ? dirname (separated and terminated by 0xff)
  94.          2 next-header size     
  95.                                 
  96.         comment header (not yet supperted)
  97.          1 0x3f                 
  98.          ? comments             
  99.          2 next-header size     
  100.                                 
  101.     b. MS-DOS dependent (0x40 - 0x7f)
  102.  
  103.         attribute header        
  104.          1 0x40                 
  105.          2 file attribute       
  106.          2 next-header size     
  107.  
  108. Note: Archived files are no longer sorted alphabetically.
  109.